import config from "@/config";
import http from "@/utils/request";
// 获取设备页面所有信息
export const getData = {
	url: `${config.BASE_URL}/audit/getmain`,
	name: "主审核-获取所有信息",
	get: async function () {
		return await http.get(this.url);
	},
};
// 姓名查询功能
export const searchData = {
	url: `${config.BASE_URL}/audit/getmain`,
	name: "主审核审核-姓名查找功能",
	post: async function (params = "") {
		return await http.post(this.url + params);
	},
};

// 审核功能
export const judgeMainApi = {
	url: `${config.BASE_URL}/audit/main`,
	name: "主审核审核-审核功能",
	body: {
		examineId: "",
		mainAuditReason: "",
		mainAuditResult: "",
	},
	post: async function () {
		return await http.post(this.url, this.body);
	},
};
